﻿@using GTAuto.DAL.Entities
@model List<GTAuto.DAL.Entities.GTModel>
@{
    ViewBag.Title = "ByBrand";
    Layout = "~/Views/Shared/_Layout.cshtml";
    GTBrand curBrand = ViewBag.Brand;
}
<div id="list">
    @Html.Partial("Controls/BreadCrumbs")
    @Html.Partial("Controls/Favorites")
</div>
<div id="main_left">
     @if (Model.Count != 0)
     {
         @Html.Partial("Controls/TireModels", Model)
     }
</div>
<div id="main_center">
    <div class="catalog_shini">
        @if (Model.Count != 0)
        {
            <div class="title">
                @curBrand.Name</div>
            <ul>
                @foreach (var item in Model)
                {
                    <li><a href=@Url.Action("TireByModel", "Tires", new {@id = @item.Id})><span class="shini_img">
                                                                                              <img src=@Url.Action("GetInSize105122", "Img", new {@id = item.Logo}) alt="" />
                                                                                          </span><span class="shini_title">@item.Brand.Name<br />
                                                                                                     @item.Name</span> </a></li>
                }
            </ul>
            <div class="clear">
            </div>
        }
        else
        {
            <div class="title">
                Поиск не дал результатов</div>
        }
    </div>
</div>
<div id="main_right">
    @Html.Partial("Controls/Bunner")
    @Html.Partial("Controls/Reklama")
</div>